package edu.uestc.canary.service;

import com.github.pagehelper.PageInfo;
import edu.uestc.canary.entity.Category;

import java.util.List;

public interface CategoryService {
    List<Category> loadAll();

    PageInfo<Category> loadAll(int pageIndex, int pageSize);

    boolean save(Category category);

    boolean removeById(Integer id);

    boolean modify(Category category);

    Category findById(Integer id);
}
